import {Injectable} from '@angular/core';
import {Http, Response} from '@angular/http';
import {Car} from '../domain/car';
import { Observable } from 'rxjs/Rx';

@Injectable()
export class CarService {

    constructor(private http: Http) {}

    getCarsSmall() {
        return this.http.get('app/resources/data/cars-small.json').map(res => {
          return res.json().data;
        });
    }
}
